﻿using System;
using VisualWip.Core.Interfaces;

namespace VisualWip.Core
{
    public abstract class SettingsPathBase : ISettingsPath
    {
        public virtual bool HasPath
        {
            get { return !string.IsNullOrWhiteSpace(Path); }
        }

        public string Path { get; set; }

        #region Implementation of IPersistable

        public abstract PersistenceTree Persist(string name);
        public abstract void Load(PersistenceTree settings);

        #endregion


    }
}